package com.JZ.QM.service;

import com.JZ.QM.common.entity.PositionDetailEntity;
import com.JZ.QM.common.entity.UserPositionDetailEntity;
import com.JZ.QM.common.entity.WealthPositionEntity;
import com.JZ.QM.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.Map;

/**
 * @author: cyc
 * @email cyc@gmail.com
 * @date: 2020/7/12 22:56
 */
public interface WealthPositionService extends IService<WealthPositionEntity> {
    /**
     * 分页查询
     * @param params
     * @return
     * @throws Exception
     */
    PageUtils queryPage(Map<String, Object> params) throws Exception;

    /**
     * 财富账号id账户id
     * @param accountId
     * @return
     */
    ArrayList<PositionDetailEntity> getWealthPositionProducts(Long accountId);

//    ArrayList<PositionDetailEntity> getNewComPositionDetailItems(Long comId);

    /**
     *  通过组合id，获取所有购买该组合的金额最多的五名用户
     * @param comBaseId 原组合基本id
     * @return
     */
    ArrayList<UserPositionDetailEntity> showPositionTop5ForUser(Long comBaseId);

}
